import {createStore,applyMiddleware} from "redux"
import thunk from "redux-thunk"
import rootReducer from "./reducers";
import {actionLog} from "./middlewares/log";

const store = createStore(rootReducer,applyMiddleware(thunk,actionLog));
export type RootState = ReturnType<typeof store.getState>

export default store;
